/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.simplemvc.core.vo;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;

/**
 *
 * @author Administrator
 */
public class Test {
     public static void main(String[] args) throws FileNotFoundException {
        XStream xstream = new XStream(new DomDriver()); //dos not require XPP3 library 
        xstream.processAnnotations(Actions.class);
        InputStream is = Actions.class.getClassLoader().getResourceAsStream("simplemvc.xml");
//        xstream.fromXML(is);
        xstream.toXML(xstream.fromXML(is), new FileOutputStream(new File("d:/test.xml")));
    }
}
